const { Schema } = require('mongoose');
const mongoose = require('./core');

var ArticleCateSchema= mongoose.Schema({
  title:{type:String},
  link:{type:String},
  pid:{type:Schema.Types.Mixed},//混合类型(可以放任何数据),因为可能是objectid,也可能是string
  sub_title:{type:String},//用于seo优化
  keywords:{type:String},//用于seo优化
  description:{type:String},//用于seo优化
  sort:{type:Number,default:100},
  add_time:{type:Number},
  status: { type: Number, default: 1 },
})

module.exports = mongoose.model('ArticleCate',ArticleCateSchema,'article_cate')